home *** CD-ROM | disk | FTP | other *** search
- regc(0, "TFACTOR")
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
- pshader("
-
- ps_1_1
-
- tex t0 ;texture (RGB - color, A<0-127> - Opacity, A<128-255> - Specular Mask)
- tex t1 ;Clouds
- tex t2 ;Terrain lightmap
-
-
- mul r0.rgb, t0, t2
- +mul r0.a, 1-t1.a, v0.b
-
- mul r0.rgb, r0, c5
-
- mad_sat r1, r0.a, c7, c7.a ;Diffuse Lighting + Map Ambient = Set Diffuse
-
- mul r0.rgb, r0, r1
- +mov r0.a, c0.a
-
- ")
-
-
-